package CreationalPattern.simpleNotefactory;

public class NoteFactory {
    public static INote create(String name) {
        if (name.equals("Football")) {
            return new FootballNote();
        } else if (name.equals("Basketball")) {
            return new BasketballNote();
        } else {
            return null;
        }

    }


}
